home *** CD-ROM | disk | FTP | other *** search
/ Internet.Works 41 / Issue 41.iso / pc / PCSoftware / Netscape 6 Official Release / nim.xpi / bin / chrome / aim.jar / content / aim / findAFriend2_2.js < prev    next >
Encoding:
JavaScript  |  2000-04-19  |  2.0 KB  |  68 lines

  1. /* 
  2.  * The contents of this file are subject to the Netscape Public
  3.  * License Version 1.1 (the "License"); you may not use this file
  4.  * except in compliance with the License. You may obtain a copy of
  5.  * the License at http://www.mozilla.org/NPL/
  6.  *  
  7.  * Software distributed under the License is distributed on an "AS
  8.  * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  9.  * implied. See the License for the specific language governing
  10.  * rights and limitations under the License.
  11.  *  
  12.  * The Original Code is Mozilla Communicator client code, released
  13.  * March 31, 1998.
  14.  * 
  15.  * The Initial Developer of the Original Code is Netscape
  16.  * Communications Corporation. Portions created by Netscape are
  17.  * Copyright (C) 1998-1999 Netscape Communications Corporation. All
  18.  * Rights Reserved.
  19.  * 
  20.  * Contributor(s): 
  21.  *   Ben Goodger (03/11/99)
  22.  */
  23.  
  24. //var bundle = srGetStrBundle("chrome://communicator/locale/profile/newProfile1_2.properties");
  25. //var detect = false;
  26.  
  27. // the getting procedure is unique to each page, since each page can different
  28. // types of elements (not necessarily form elements). So each page must provide
  29. // its own GetFields function
  30. function GetFields()
  31. {
  32.   var emailaddr = "dummy"
  33.   var rv = { 
  34.     emailaddr: { id: "emailaddr",      value: emailaddr       },
  35.  
  36.   }
  37.   return rv;
  38.    
  39. }
  40.  
  41. // the setting procedure is unique to each page, and as such each page
  42. // must provide its own SetFields function
  43. function SetFields(element,set)
  44. {
  45.   element = document.getElementById(element);
  46.   //dump("In SetFields(" + element + "," + set + ");\n");
  47.  if(element.id == "emailaddr")
  48.     element.value = set;
  49.  
  50. function setNext(thelabel){
  51.     parent.wizardManager.wizardMap[parent.wizardManager.currentPageTag].next=thelabel
  52.  
  53. function showResult(responseCode){
  54.  
  55.     if(responseCode=="success"){
  56.         parent.wizardManager.LoadPage('findAFriend1_2',false);
  57.  
  58.     }
  59.  
  60. }
  61.  
  62. function simulateSearch(){
  63.     foo=setTimeout("showResult('success')",1000);
  64.  
  65. }
  66.